﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Web.Framework.Svc;

namespace PlanProd.Contracts
{
    [Serializable]
    [DataContract]
    public class Producto : IAuditable
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string ProductoIdExterno { get; set; }

        [DataMember]
        public string ProductoNombre { get; set; }

        [DataMember]
        public string ColorIdExterno { get; set; }

        [DataMember]
        public string ColorNombreExterno { get; set; }

        [DataMember]
        public string TemporadaCodigoExterno { get; set; }

        [DataMember]
        public string TemporadaNombre { get; set; }

        [DataMember]
        public string MarcaIdExterno { get; set; }

        [DataMember]
        public string MarcaNombreExterno { get; set; }

        [DataMember]
        public string OrigenIdExterno { get; set; }

        [DataMember]
        public string OrigenNombreExterno { get; set; }

        [DataMember]
        public string LineaIdExterno { get; set; }

        [DataMember]
        public string LineaNombreExterno { get; set; }

        [DataMember]
        public string FamiliaIdExterno { get; set; }

        [DataMember]
        public string FamiliaNombreExterno { get; set; }

        [DataMember]
        public string SubFamiliaIdExterno { get; set; }

        [DataMember]
        public string SubFamiliaNombreExterno { get; set; }

        [DataMember]
        public string GrupoTalleIdExterno { get; set; }

        [DataMember]
        public string GrupoTalleNombreExterno { get; set; }

        [DataMember]
        public string CodigoOrly { get; set; }

        [DataMember]
        public string CalidadId { get; set; }

        [DataMember]
        public string Calidad { get; set; }

        [DataMember]
        public int EmpresaId { get; set; }

        [DataMember]
        public string ErrorMsg { get; set; }

        [DataMember]
        public DateTime? FechaSincronizacion { get; set; }

        [DataMember]
        public string ProductoIdExternoSegunda { get; set; }       

        public string DisplayName
        {
            get
            {
                return ProductoNombre;
            }
        }

        [DataMember]
        public DateTime AuditFechaCreacion { get; set; }

        [DataMember]
        public string AuditUserNameCreacion { get; set; }

        [DataMember]
        public DateTime? AuditFechaModificacion { get; set; }

        [DataMember]
        public string AuditUserNameModificacion { get; set; }
    }
}
